package stub;

import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.LineNumberReader;

import testTraitFormat.*;

public class Main {

	public static void main(String[] args) {
		String ligne;
		
		try{
			InputStream ips = new FileInputStream("z:\\marijo\\jdt.txt"); 
			InputStreamReader ipsr = new InputStreamReader(ips);
			LineNumberReader lnr = new LineNumberReader(ipsr);
			
			TestTraitFormat ttf = new TestTraitFormat();
			
			FileWriter ops = new FileWriter("z:\\marijo\\stub.txt");
	
			while ((ligne = lnr.readLine()) != null) { 
				ops.write(ttf.analyze(ligne) + "\r\n");
			}
			
			ips.close();
			ops.close();
			
		}catch (Exception e){
			System.out.println(e.toString());
		}
	}

}
